package com.cdd.common.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 签到配置表
 */
@TableName("app_sign_config")
public class AppSignConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer day;//天数
    private String giveDiamonds;//赠送钻石

    @TableField(exist = false)
    private String surfaceName;
    @TableField(exist = false)
    private Integer isSign;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDay() {
        return day;
    }

    public void setDay(Integer day) {
        this.day = day;
    }

    public String getGiveDiamonds() {
        return giveDiamonds;
    }

    public void setGiveDiamonds(String giveDiamonds) {
        this.giveDiamonds = giveDiamonds;
    }

    public String getSurfaceName() {
        return surfaceName;
    }

    public void setSurfaceName() {
        this.surfaceName = "第" + this.day + "天";
    }

    public Integer getIsSign() {
        return isSign;
    }

    public void setIsSign(Integer isSign) {
        this.isSign = isSign;
    }
}
